package com.fs.sale.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.sale.pojo.PriceList;
import com.fs.sale.vo.OrderSearch;
import com.fs.sale.vo.PriceListVo;
import org.apache.ibatis.annotations.Mapper;

import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Objects;

@Mapper
public interface PriceListMapper extends BaseMapper<PriceList> {
    List<PriceListVo> selectAll(@Param("page") Page<PriceListVo> page, @Param("orderSearch") OrderSearch orderSearch);
    List<PriceListVo> queryByID(@Param("id") Long id, @Param("orderSearch")OrderSearch orderSearch,@Param("page") Page<PriceListVo> page);
//@Options(useGeneratedKeys = true,keyProperty = "pl_id")
    int insert(PriceList priceList);
}
